<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Momentum Snake Game</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div class="game-container">
        <div class="game-header">
            <h1>Momentum Snake</h1>
            <div class="score-container">
                <span>Score: </span>
                <span id="score">0</span>
            </div>
            <div class="mass-container">
                <span>Mass: </span>
                <span id="mass">1</span>
            </div>
        </div>
        <canvas id="gameCanvas"></canvas>
        <div class="game-controls">
            <p>Controls: Use arrow keys to move</p>
            <p>↑ - Accelerate forward, ↓ - Accelerate backward</p>
            <p>← - Turn left, → - Turn right</p>
            <button id="startButton">Start Game</button>
            <button id="restartButton" style="display: none;">Restart Game</button>
        </div>
    </div>
    <div id="gameOverModal" class="modal">
        <div class="modal-content">
            <h2>Game Over!</h2>
            <p>Your final score: <span id="finalScore">0</span></p>
            <button id="playAgainButton">Play Again</button>
        </div>
    </div>
    <script src="js/game.js"></script>
</body>
</html>
